#include <myheader.h>

/* Usage:  */
int main(int argc, char *argv[]){                                  
    ARGS_CHECK(argc,2);
    int fd=open(argv[1],O_RDWR);
    ERROR_CHECK(fd,-1,"open");

    char buf[6]={0};
    ssize_t sret=read(fd,buf,sizeof(buf)-1);
    printf("sret=%ld\nbuf=%s\n",sret,buf);
    memset(buf,0,sizeof(buf));

    size_t sret2=read(fd,buf,sizeof(buf)-1);
    printf("sret2=%ld\nbuf=%s\n",sret2,buf);
    memset(buf,0,sizeof(buf));
    return 0;
}

